﻿@model IEnumerable<CourseInfo>
@{
    int rows = Model.Count() / 3;
    if (Model.Count() % 3 != 0)
    {
        rows += 1;
    }
}

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>广州中医药大学康复治疗微课程网络学习平台</title>
    @Html.Partial("~/Views/Share/PublicHeader.cshtml")
</head>
<body>
    @Html.Partial("~/Views/Share/PublicTopNav.cshtml")
    <div class="container">
        <div class="row">
            <h1 class="topTitle-h1">康复治疗微课程网络学习平台<br>
                <small>广州中医药大学针灸康复临床医学院</small>
            </h1>
        </div>
        <div class="row">
            <div class="col-xs-9">
                @for (int i = 0; i < rows; i++)
                { 
                    <div class="row lBox mb10">
                        @if (i == 0)
                        {
                            <div class="col-xs-12">
                                <div class="th">
                                    <em>课程列表</em>
                                </div>
                            </div>
 
                        }
                        @for (int j = 0; j < 3 && (j + i * 3) < Model.Count(); j++)
                        { 
                            <div class="col-xs-4">
                                <div class="ksBox">
                                    <h3 class="ksBox-th"><a href="@Url.Action("CourseIntro", "Home")?CourseId=@Model.ElementAt(j + i * 3).Id" class="blue" target="_blank">@Model.ElementAt(j + i * 3).CourseName</a></h3>
                                    <div class="ksBox-pic">
                                        <a class="aPicTxt" href="@Url.Action("CourseIntro", "Home")?CourseId=@Model.ElementAt(j + i * 3).Id" target="_blank">
                                            <img src="@(!string.IsNullOrEmpty(Model.ElementAt(j + i * 3).ImageUrl) ? Model.ElementAt(j + i * 3).ImageUrl : "/Images/noimg.jpg")">
                                            <i>点击进入</i>
                                        </a>
                                    </div>
                                    <ul class="nav nav-tabs" role="tablist">
                                        <li role="presentation" class="active"><a href="#tab1_@Model.ElementAt(j + i * 3).CourseName" role="tab" data-toggle="tab">课程简介</a></li>
                                        <li role="presentation"><a href="#tab2_@Model.ElementAt(j + i * 3).CourseName" role="tab" data-toggle="tab">教师简介</a></li>
                                        <li role="presentation"><a href="#tab3_@Model.ElementAt(j + i * 3).CourseName" role="tab" data-toggle="tab">课程目标</a></li>
                                        <li role="presentation"><a href="#tab4_@Model.ElementAt(j + i * 3).CourseName" role="tab" data-toggle="tab">实验内容</a></li>
                                    </ul>
                                    <div class="tab-content">
                                        <div class="tab-pane active fade in" role="tabpanel" id="tab1_@Model.ElementAt(j + i * 3).CourseName">
                                            <p class="pTxt">@Model.ElementAt(j + i * 3).CourseIntro.SubLeft(55)</p>
                                            <div class="dBtn">
                                                <a href="@Url.Action("CourseOtherInfoBrowse", "CourseOtherInfo")?TypeCode=1001&CourseId=@Model.ElementAt(j + i * 3).Id" class="aBtn aBtn-Orange" target="_blank">查看更多&gt;&gt;</a>
                                            </div>
                                        </div>
                                        <div class="tab-pane fade" role="tabpanel" id="tab2_@Model.ElementAt(j + i * 3).CourseName">
                                            <p class="pTxt">@Model.ElementAt(j + i * 3).TeacherIntro.SubLeft(55)</p>
                                            <div class="dBtn">
                                                <a href="@Url.Action("CourseOtherInfoBrowse", "CourseOtherInfo")?TypeCode=1002&CourseId=@Model.ElementAt(j + i * 3).Id" class="aBtn aBtn-Orange" target="_blank">查看更多&gt;&gt;</a>
                                            </div>
                                        </div>
                                        <div class="tab-pane fade" role="tabpanel" id="tab3_@Model.ElementAt(j + i * 3).CourseName">
                                            <p class="pTxt">@Model.ElementAt(j + i * 3).CourseGoal.SubLeft(55)</p>
                                            <div class="dBtn">
                                                <a href="@Url.Action("CourseOtherInfoBrowse", "CourseOtherInfo")?TypeCode=1003&CourseId=@Model.ElementAt(j + i * 3).Id" class="aBtn aBtn-Orange" target="_blank">查看更多&gt;&gt;</a>
                                            </div>
                                        </div>
                                        <div class="tab-pane fade" role="tabpanel" id="tab4_@Model.ElementAt(j + i * 3).CourseName">
                                            <p class="pTxt">@Model.ElementAt(j + i * 3).ExperimentContent.SubLeft(55)</p>
                                            <div class="dBtn">
                                                <a href="@Url.Action("CourseOtherInfoBrowse", "CourseOtherInfo")?TypeCode=1006&CourseId=@Model.ElementAt(j + i * 3).Id" class="aBtn aBtn-Orange" target="_blank">查看更多&gt;&gt;</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        }
                    </div>  
                }
            </div>
            <div class="col-xs-3 pr0">
                @Html.Partial("~/Views/Share/PublicNewestAnnounce.cshtml")
                @Html.Partial("~/Views/Share/PublicNewestResource.cshtml", 1001)
                @Html.Partial("~/Views/Share/PublicNewestResource.cshtml", 1002)
                @Html.Partial("~/Views/Share/PublicNewestResource.cshtml", 1003)
                @Html.Partial("~/Views/Share/PublicNewestCourseOtherInfo.cshtml", 1008)
            </div>
        </div>
    </div>
    
    @Html.Partial("~/Views/Share/PublicFooter.cshtml")
    @Html.Partial("~/Views/Share/PublicCommonJs.cshtml")
</body>
</html>






























